package grape.attend.rest.user.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 用户打卡日期表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户打卡日期表更新表单对象")
public class UserClockDateUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message="用户id不能为空")
    @ApiModelProperty(value = "用户id")
    private String userId;

    @NotNull(message="班次日期不能为空")
    @ApiModelProperty(value = "班次日期")
    private Date classeDate;

    @NotNull(message="是否存在异常不能为空")
    @ApiModelProperty(value = "是否存在异常")
    private Boolean isHasError;

    @NotEmpty(message="备注不能为空")
    @ApiModelProperty(value = "备注")
    private String remark;



}
